﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tenta_2014_12_14_5
{
    class Node<TValue> where TValue : class
    {
        public TValue Data { get; set; }
        public Node<TValue> Next { get; set; }
        public Node<TValue> Prev { get; set; }

        public Node(TValue data = default(TValue), Node<TValue> next = null, Node<TValue> prev = null)
        {
            this.Data = data;
            this.Next = next;
            this.Prev = prev;
        }

    }
}
